package com.antdesignbackend.backend.town.service.impl;


import com.antdesignbackend.backend.town.entity.entityVo.TownVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.town.mapper.TownMapper;
import com.antdesignbackend.backend.town.entity.Town;
import com.antdesignbackend.backend.town.service.TownService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class TownServiceImpl extends ServiceImpl<TownMapper, Town> implements TownService {
    @Autowired
    TownMapper townMapper;

    @Override
    public List<TownVo> search(QueryWrapper<TownVo> queryWrapper, Page<TownVo> page) {
        return townMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<TownVo> queryWrapper) {
        return townMapper.count(queryWrapper);
    }
}
